package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
public class OrderBill  extends BaseDomain{


    //待审核
    public static final  int ORDER_BILL_STATUS_NORMAL =0 ;

    //以审核
    public static final int ORDER_BILL_STATUS_AUDITED = 1;

    private String sn;//编码
    //业务时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;

    private Integer status = ORDER_BILL_STATUS_NORMAL ;
    //总金额
    private BigDecimal totalAmount;
    //总数量
    private BigDecimal totalNumber;
    //审核时间
    private Date auditTime;
    //录入时间
    private Date inputTime;
    //录入人 :多对一
    private Employee inputUser;

    //审核人 .多对一
    private Employee auditor;
    //供应商
    private Supplier supplier;

    private List<OrderBillItem> items = new ArrayList<>();

}